Skip to content

Conversation

@duncanmcclean
Copy link
Owner

@duncanmcclean duncanmcclean commented Dec 3, 2025

Frontend routes

Statamic (and by extension, Cargo) only registers route bindings on non-CP routes to avoid potential conflicts with existing apps.

If you know there aren't going to be any conflicts, you may override the behaviour in the routes.php config file:

// config/statamic/routes.php

'bindings' => true,

This pull request ensures that Cargo takes the bindings config option into account when registering route bindings, mirroring Statamic.

Unable to use {order} in frontend route

This pull request also fixes an issue when trying to use {order} in a frontend route, where Cargo would return false instead of returning the value from the URL.

Fixes #70

@duncanmcclean duncanmcclean merged commit 63c6749 into main Dec 3, 2025
13 checks passed
@duncanmcclean duncanmcclean deleted the route-bindings branch December 3, 2025 23:10
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Released as part of v1.0.0-alpha.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Route binding for order stops custom routing / controllers

2 participants